/**
* 变长参数模板
*/

#include <iostream>

template<typename T>
void print(const T &t) {
    std::cout << t << std::endl;
}

template<typename First, typename ... Rest>
void print(const First &first, const Rest &... rest) {
    std::cout << first << ",";
    print(rest...);

}

int main() {
    print(10, 20, 30);
    print(1, 2, 3, "Hello World!");

}
